package com.sky.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;


@Mapper
public interface DishFlavorMapper {


    /**
     * 根据菜品id删除口味数据
     * 这里其实是一个id对应多条的口味数据
     * @param id
     */
    @Delete("delete from dish_flavor where dish_id = #{id}")
    void deleteByDishId(Long id);


    /**
     * 根据菜品id查询对应的口味数据
     * @param ids
     */
    void deleteByDishIds(ArrayList<Long> ids);
}
